package cn.com.fssg.platform.base.handler;


import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 接口处理器
 * @author kinta
 */
public interface InterfaceHandler {
    /**
     *
     * @param request
     * @param jsonObject 接口入参
     * @return
     */
    Object run(HttpServletRequest request, JSONObject jsonObject) throws Exception;

    default void run(HttpServletRequest request, HttpServletResponse response, JSONObject jsonObject) throws Exception{

    }
}
